// genReading.js // genReading functions function email( readingId ){ var filename = "/readextras/?file=email&site=numerology&rID=" + readingId; newWindow( filename, 450, 420, 0, 0, 'EmailReading' ); } function customize( readingId ){ var filename = "/readextras/?file=customize&site=numerology&rID=" + readingId; newWindow( filename, 450, 420, 0, 0, 'Customize' ); } function howToPrint( readingId ){ var filename = "/readextras/?file=print&site=numerology&rID=" + readingId; newWindow( filename, 450, 420, 0, 0, 'PrintHelp' ); } function notes( readingId ){ //open up new window for notes var file = "/readextras/?file=notes&site=numerology&rID=" + readingId + "&r=1"; newWindow( file, 456, 380, 0, 0, 'ReadingNotes' ); } function name( readingId ){ var file = "/readextras/?file=name&site=numerology&rID=" + readingId; newWindow( file, 420, 360, 0, 0, 'NameReading' ); } function journal( userId ){ if( userId ){ //then let them go to their journal var file = "/about-you/journal/?type=tarot&site=numerology"; }else{ //open up the journal window var file = "/readextras/?file=journal&site=numerology"; } newWindow( file, 450, 380, 0, 0, 'Journal' ); } function save( readingId ){ var file = "/readextras/?file=save&site=numerology&rID=" + readingId; newWindow( file, 450, 420, 0, 0, 'SaveReading' ); } function gChartInfo( type, id ){ var file = ""; if( type == "num" ) file = "/numerology/popup.php?file=longdesc&chartId="+id; if( type == "ast" ) file = "/astrology/features.php?file=longdesc&chart_ID="+id; if( file != "" ){ newWindow( file, 450, 380, 0, 0, 'ChartInfo', 'yes', 'yes' ); }